package org.sippr.service.impl;

import org.sippr.mapper.CreationImgSketchMapper;
import org.sippr.pojo.CreationImgSketch;
import org.sippr.service.CreationImgSketchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CreationImgSketchImpl implements CreationImgSketchService {
    @Autowired
    private CreationImgSketchMapper creationImgSketchMapper;

    @Override
    public void add(CreationImgSketch creationImgSketch) {
        creationImgSketchMapper.insert(creationImgSketch);
    }

    @Override
    public CreationImgSketch findByCreationId(Integer creationId) {
        return creationImgSketchMapper.findByCreationId(creationId);
    }

    @Override
    public CreationImgSketch findById(Integer sketchId) {
        return creationImgSketchMapper.selectByPrimaryKey(sketchId);
    }
}
